<?php
/**
 * Created by PhpStorm.
 * User: HBB-ice
 * Date: 2015/7/8
 * Time: 10:18
 */

namespace Apps\Pay;


use Phalcon\Config;
use Phalcon\Mvc\ModuleDefinitionInterface;
use PhalconPlus\Common\BaseModule;

class Module extends BaseModule implements ModuleDefinitionInterface
{
    const DIR = __DIR__;

    /**
     * Registers the module-only services
     * @param \Phalcon\DiInterface $di
     */
    public function registerServices(\Phalcon\DiInterface $di)
    {

        parent::registerServices($di);

        $config = include APP_COMMON_PATH . "base-config/pay.php";
        $di['payConfig'] = new Config($config);

    }
}